import request from '@/utils/request'

// 查询参数列表
export function list(query) {
  return request({
    url: '/system/workItem/list',
    method: 'get',
    params: query
  })
}

// 查询工作项数量
export function listNum(query) {
  return request({
    url: '/system/user/countProjByUserId',
    method: 'get',
    params: query
  })
}

// 文件上传
export function upload(data) {
  return request({
    url: '/system/info/upload',
    method: 'post',
    responseType: "blob",
    headers:{
      'Content-Type':'multipart/form-data;'
    },
    data: data
  })
}

// 修改工作项
export function emitList(data) {
  return request({
    url: '/system/dem',
    method: 'put',
    data
  })
}
